package com.ajax.util;

import java.util.Calendar;
import java.util.Random;

public final class U {
	public static long TS() {
		return Calendar.getInstance().getTimeInMillis();
	}
	
	public static long TS(long diff) {
		return TS() + diff;
	}
	
	public static int RND() {
		Random r = new Random();
		return r.nextInt();
	}
	
	public static int RND(int s, int e) {
		if(s > e) {
			int t = e;
			e = s;
			s = t;
		}
		return RND() % (e - s + 1) + s;
	}
}
